package com.easytopit.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.easytopit.bean.Person;

public interface PersonMapper {
	@Insert("insert into person(id,name, age) values(#{id},#{name}, #{age})")
	void addPerson(Person person);

	@Select("select * from  person where id=#{id}")
	Person getPerson(int id);
	
	@Delete("delete from  person where id=#{id}")
	void deletePerson(int id);
}
